package com.mccken.designpattern.chain.china2;

import lombok.Setter;

/**
 * 审批者类：抽象处理者
 * 
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2023-01-02 23:03
 **/
public abstract class Approver {
	// 定义后继对象
	@Setter
	protected Approver successor;
	
	// 审批者姓名
	protected String name;
	
	public Approver(String name) {
		this.name = name;
	}
	
	// 抽象请求处理方法
	public abstract void processRequest(PurchaseRequest request);
}
